import 'dart:convert';

import 'package:beautiful_demo/common/base/http.dart';
import 'package:beautiful_demo/common/empty.dart';
import 'package:beautiful_demo/mvc/good/bean/good_bean.dart';

import 'bean/shop_bean.dart';

///description:商品
class GoodHttp{
  //商品详情
  Future<GoodBean> httpGood() async{
    const url="/store/goods/1";
    final  para=<String,String>{};
    return GoodBean(await httpGet(url, para));

  }
  //店铺详情
  Future<ShopBean> httpShop() async{
    const url="/store/shop/1";
    final  para=<String,String>{};
    return ShopBean(await httpGet(url, para));

  }
}